#! /usr/bin/env python
# -*- coding: utf-8 -*-

import wx

#----------------------------------------------------------------------
class Frame(wx.Frame):

    def __init__(self, parent=None, title='image'):
        wx.Frame.__init__(self, parent=parent, title=title)

class App(wx.App):
    
    def OnInit(self):
        frame = Frame()
        runTest(frame)
        frame.Show()
        return True

def runTest(nb):

    gif = wx.Image('pa/image.gif', wx.BITMAP_TYPE_GIF).ConvertToBitmap()

    panel = wx.Panel(nb, -1)

    wx.StaticBitmap(panel, -1, gif, (10, 10))

    return panel
#----------------------------------------------------------------------

if __name__ == '__main__':
    app = App()
    app.MainLoop()
